public class Dog extends Animal{
    private String name;
    private int age = 20;
    public void showAge(int age) {
        System.out.println("age: " + age);
        System.out.println("this.age: " + this.age);
        System.out.println("super.age: " + super.age);
    }
    //输出int 值
    public void showAge(){
        System.out.println("age:"+age);
        System.out.println("this.age:"+this.age);
        System.out.println("super.age:"+super.age);
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void show(){
        System.out.println("小狗的名字是:"+name+" 颜色是:"+getColor()+" 年龄是:"+age);
        System.out.println("父类的属性getColor():"+getColor());
        System.out.println("父类的属性age:"+age);
        System.out.println("子类的属性name:"+name);
        
    }
    
}